<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;

class CreateCallbackTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('callback', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('code', 100)->comment('回调接口类型代码');
            $table->string('name', 250)->comment('回调接口类型名称');
            $table->timestamps();
        });
        DB::statement(/** @lang text */ "ALTER TABLE `callback` comment '回调接口类型'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('callback');
    }
}
